package com.joysuch.wwyt.attendant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Time;
import java.util.Date;

/**
 * 跟班计划
 *
 * @author xsx
 * @version 1.0
 * @date 2023/2/15 10:50
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_attendant_plan")
public class AttendantPlan extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "跟班人员")
    private Long userId;
    @ApiModelProperty(value = "跟班区域")
    private Long areaId;
    @ApiModelProperty(value = "跟班时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date attendantTime;
    @ApiModelProperty(value = "跟班开始时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Time startTime;
    @ApiModelProperty(value = "跟班结束时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Time endTime;
    @ApiModelProperty(value = "签到方式 0无需签到 1定位签到")
    private Integer signInMethod;
    @ApiModelProperty(value = "状态 1未开始 2进行中 3已完成 -1 逾期未完成 0暂存")
    private Integer state;
    @ApiModelProperty(value = "跟班计划名称")
    private String name;


}
